<div class="main_content">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
						<th>序号</th>
						<th>物资编码</th>
						<th>部件号</th>
						<th>物资名称</th>
						<th>规格型号</th>
						<th>供应商</th>
						<th>原始数量</th>
						<th>剩余数量</th>
						
						<th>单价</th>
						<th>总价</th>
						<th>币种</th>
						<th>存储位置</th>
						<th width="15%">操作</th>
		</tr>
	</thead>
	<tbody>
	{%foreach from=$arr item=arr_item%}
		<tr class="list_{%$arr_item.high_replacement_id%}">
				<td>
				{% if $arr_item.record %}
					<div id="sign_{%$arr_item.high_replacement_id%}" class="sign_pm pcursor sign_plus" onclick="showList(this,'{%$arr_item.high_replacement_id%}')"></div>
				{% else %}
					<div class="sign_pm sign_minus"></div>
				{% /if %}
				</td>
						<td>{%$arr_item.materials_no%}</td>
						<td>{%$arr_item.part_number%}</td>
						<td>{%$arr_item.materials_name%}</td>
						<td>{%$arr_item.format_model%}</td>
						<td>{%$arr_item.suppliers_name%}</td>
						<td>{%$arr_item.original_number%}</td>
						<td>{%$arr_item.last_number%}</td>
						
						<td>{%$arr_item.unit_price%}</td>
						<td>{%$arr_item.total_price%}</td>
						<td>{%$price_type_arr[$arr_item.currency]%}</td>
						<td>{%$arr_item.location%}</td>
						<td>
				<a href='index.php?c=zy_high_replacement&m=browse&high_replacement_id={%$arr_item.high_replacement_id%}'>查看</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_high_replacement&m=edit&high_replacement_id={%$arr_item.high_replacement_id%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_high_replacement&m=del&high_replacement_id={%$arr_item.high_replacement_id%}'>删除</a>
				<a href='index.php?c=zy_high_replacement_record&m=add&hid={%$arr_item.high_replacement_id%}'>添加库请</a>
			</td>
		</tr>
		<tr class="hide_chunk">
			<td colspan="13">
				<div class="arrow_open"></div>
				
				<div class="load_list">
					<table width="96%" name="tab_sub" id="tab_sub" class="tab_sub" border="0" cellpadding="0" cellspacing="1" align="left">
					<thead>
						<tr>
							<th width="5%">序号</th>
							<th>库请单号</th>
							<th>发往项目</th>
							<th>数量</th>
							<th>库请日期</th>
							<th>经办人</th>
						</tr>
					</thead>
					<tbody>	
					{%if $arr_item.record%}
						{%foreach from=$arr_item.record item=record_arr key=key%}
						<tr>
						<td>{%$key+1%}</td>
						<td>{% $record_arr.storehouse_no %}</td>
						<td>{% $project_arr[$record_arr.send_company] %}</td>
						<td>{% $record_arr.storehouse_num %}</td>
						<td>{% $record_arr.record_date|date_format:"%Y-%m-%d" %}</td>
						<td>{% $admin_info[$record_arr.operation_people] %}</td>
						</tr>

						{%/foreach%}
					

					{%/if%}



										</tbody>					
					<tfoot>
						<tr>
							<td colspan="11"><div id="pager"></div></td>
						</tr>
					</tfoot>					
					</table>
				</div>
			</td>
		</tr>
	{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="13"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
	
	<div class="btn_list">
		<span class="btn_add" onclick="location.href='?c=zy_high_replacement&m=add'">添 加</span>
	</div>
</div>